package cn.edu.stu.syllabus.oa.star;

import java.util.List;

import cn.edu.stu.syllabus.base.BasePresenter;
import cn.edu.stu.syllabus.base.BaseView;
import cn.edu.stu.syllabus.base.IStorable;
import cn.edu.stu.syllabus.repository.oa.local.OaInfoEntry;

/**
 * Created by daidaijie on 2017/3/21.
 */

public interface OaStarContract {

    interface Presenter extends BasePresenter, IStorable {
        void loadStarOaEntries();

        void unstarOaInfo(OaInfoEntry oaInfoEntry, int position);
    }

    interface View extends BaseView<Presenter> {

        void showDataEmpty();

        void showDataError();

        void setOaInfoList(List<OaInfoEntry> oaInfoEntries);

        void appendOaInfoList(List<OaInfoEntry> oaInfoEntries);

        void showLoadingFail();

        void showLoadingEnd();

        void removeUnstarOaInfo(int position);
    }
}
